package com.zhongan.gateway.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.zhongan.gateway.bean.ApiRequestLog;
import com.zhongan.gateway.mapper.ApiRequestLogMapper;
import com.zhongan.gateway.service.ApiLogService;

@Component
public class ApiLogServiceImpl implements ApiLogService {

    //    private static final Logger logger = LoggerFactory.getLogger(ApiLogServiceImpl.class);
    @Resource
    private ApiRequestLogMapper apiRequestLogMapper;

    @Override
    public int insertLog(ApiRequestLog record) {
        int i = apiRequestLogMapper.insert(record);
        return i;
    }

}
